﻿namespace HutongGames.PlayMaker
{
    using System;
    using UnityEngine;

    [Serializable]
    public class FsmString : NamedVariable
    {
        [SerializeField]
        private string value;

        public FsmString()
        {
            this.value = "";
        }

        public FsmString(FsmString source) : base(source)
        {
            this.value = "";
            this.value = source.value;
        }

        public FsmString(string name) : base(name)
        {
            this.value = "";
        }

        public static implicit operator FsmString(string value)
        {
            FsmString str2 = new FsmString(string.Empty);
            str2.value = value;
            return str2;
        }

        public override string ToString()
        {
            return this.value;
        }

        public string Value
        {
            get
            {
                return this.value;
            }
            set
            {
                this.value = value;
            }
        }
    }
}

